package com.nashuju.web.entity.sw;

import java.util.Date;

import org.durcframework.core.expression.annotation.ValueField;
import org.durcframework.core.support.SearchEasyUI;
import org.durcframework.core.util.DateUtil;


public class LogSch extends SearchEasyUI{

	//根据时间进行搜索的部分
	private Date createdStartSch;
	private Date createdEndSch;

	@ValueField(column = "createdTime", equal = ">=")
	public Date getCreatedStartSch() {
		return createdStartSch;
	}

	public void setCreatedStartSch(Date createdStartSch) {
		this.createdStartSch = createdStartSch;
	}

	@ValueField(column = "createdTime", equal = "<")
	public Date getCreatedEndSch() {
		if (createdEndSch != null) {
			return DateUtil.getDateAfterDay(createdEndSch, 1);
		}
		return createdEndSch;
	}

	public void setCreatedEndSch(Date createdEndSch) {
		this.createdEndSch = createdEndSch;
	}


    private Integer idSch;
    private String sysInfoSch;
    private String workInfoSch;
    private String messageSch;
    private String errorSch;
    private String ipSch;
    private Date createdTimeSch;

    public void setIdSch(Integer idSch){
        this.idSch = idSch;
    }
    
    @ValueField(column = "id")
    public Integer getIdSch(){
        return this.idSch;
    }

    public void setSysInfoSch(String sysInfoSch){
        this.sysInfoSch = sysInfoSch;
    }
    
    @ValueField(column = "sys_info")
    public String getSysInfoSch(){
        return this.sysInfoSch;
    }

    public void setWorkInfoSch(String workInfoSch){
        this.workInfoSch = workInfoSch;
    }
    
    @ValueField(column = "work_info")
    public String getWorkInfoSch(){
        return this.workInfoSch;
    }

    public void setMessageSch(String messageSch){
        this.messageSch = messageSch;
    }
    
    @ValueField(column = "message")
    public String getMessageSch(){
        return this.messageSch;
    }

    public void setErrorSch(String errorSch){
        this.errorSch = errorSch;
    }
    
    @ValueField(column = "error")
    public String getErrorSch(){
        return this.errorSch;
    }

    public void setIpSch(String ipSch){
        this.ipSch = ipSch;
    }
    
    @ValueField(column = "ip")
    public String getIpSch(){
        return this.ipSch;
    }

    public void setCreatedTimeSch(Date createdTimeSch){
        this.createdTimeSch = createdTimeSch;
    }
    
    @ValueField(column = "created_time")
    public Date getCreatedTimeSch(){
        return this.createdTimeSch;
    }


}